package com.jk.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "clo_cloth")
public class ClothEntity implements Serializable {

    private static final long serialVersionUID = 2006762641515872124L;

    @Id
    @Field(type = FieldType.Integer)
    private Integer clothId;
    @Field(type = FieldType.Text,analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
    private String clothName;//产品名称

    private Integer clothTypeA;//   服装类型 1上装 2下装 3饰品 4鞋类

    private String clothColor;//  服装颜色

    private Integer clothSize;//服装大小

    private String  clothImgA; //   服装图片

    private String clothState; //   服装状态                   上下架

    private BigDecimal clothPrice;  //       服装价格                    降价  售价
    private String  clothCount;   //  服装数量
    private Integer  clothSum;     //    服装总价
    private String clothDate ;    //      服装时间                    上架时间
    private String clothDescribe ; //   服装描述

    private String clothShowCity ; //  服装产地

    private String clothInventory  ; // 服装库存

    private String clothImgB;//产品图片2

    private String clothNum;//产品编号

    private Integer clothTypeB;//产品类型：1新品 2男子 3女子






    //购物车
    private Integer shopCartId;
    private Integer clothCarPrice;
    private Integer shopCount;
    private Integer shopSumPrice;
    private Integer shopId;
    private Integer userId;
}
